<?php

namespace IDock\Insurance\HBIC;

class HBICEnums
{

    public static $TCI = '0330';

    public static $VCI = '0333';

    /**
     * 使用性质
     * @var array $useNatureCode
     */
    public static $useNatureCode = [
        '01' => '02',
        '02' => '01',
    ];

    /**
     * 所属性质
     * @var array $attachNature
     */
    public static $attachNature = [
        '01' => '个人',
        '02' => '机关/团体',
        '03' => '企业'
    ];

    /**
     * 恒邦分
     * @var string[]
     */
    public static $pointType = [
        '1' => '恒邦分',
        '2' => '车辆评分（大小货车）',
        '3' => '新能源车评分',
        '4' => '七炅评分',
        '5' => '江铃评分',
        '6' => '私家车评分',
    ];

    /**
     * 车辆用途
     * @var array $causeType
     */
    public static $causeType = [
        '001' => '01',//家庭自用
        '002' => '02',//机关自用
        '003' => '03',//企业自用
        '004' => '04',//出租客车
        '005' => '05',//租赁客车
        '006' => '06',//城市公交
        '007' => '07',//公路客运
        '008' => '08',//营运货运
        '009' => '09',//特殊用途
    ];

    /**
     * 能源类型
     * @var string[] $energyType
     */
    public static $energyType = [
        'E00' => '9',//其他
        'E10' => '',//无
        'E01' => '0',//燃油
        'E02' => '1',//纯电动
        'E03' => '2',//燃料电池
        'E04' => '3',//插电式混合动力
        'E05' => '4',//其他混合动力
        'E11' => '0',//汽油
        'E12' => '0',//柴油
        'E13' => '1',//电动
        'E14' => '',//混合油
        'E15' => '',//液化石油气
        'E16' => '',//天然气
        'E17' => '',//甲醇
        'E18' => '',//乙醇
        'E19' => '',//太阳能
        'E20' => '',//混合动力
        'E21' => '',//两用燃料
        'E22' => '2',//燃油电池
    ];

    /**
     * 车辆种类
     * @var array $carKindCode
     */
    public static $carKindCode = [
        '100' => '100',//客车
        '200' => '200',//货车
        '210' => '210',//低速载货汽车
        '320' => '320',//挂车
        '500' => '',//特种车
        '600' => '321'//特种车挂车
    ];

    /**
     * 进口车标识
     * @var array $importFlag
     */
    public static $importFlag = [
        '国产' => 'I0',
        '合资' => 'I2',
        '进口' => 'I3',
        '' => ''
    ];

    /**
     * 缴税类型
     * @var array $taxTypeCode
     */
    public static $taxTypeCode = [
        'T01' => '02',//正常缴税
        'T02' => '03',//完税
        'T03' => '05',//免税
        'T04' => '04',//减税
        'T05' => '',//不缴
        'T06' => '07',//不征
        'T07' => '01',//拒缴
        'T08' => '',//有争议
    ];

    /**
     * 关系人证件类型
     * @var array $certificateTypeCode
     */
    public static $certificateTypeCode = [
        '01' => '01',//居民身份证
        '02' => '99',//居民户口簿
        '03' => '02',//护照
        '04' => '99',//外国人永久居留身份证
        '05' => '04',//驾驶证
        '50' => '1',//组织机构代码证
        '51' => '3',//营业执照
        '52' => '4',//社会信用代码证
        '99' => '99',//其他
    ];

    /**
     * 号牌种类代码
     * @var array $licenseTypeCode
     */
    public static $licenseTypeCode = [
        '01' => '01',//大型汽车
        '02' => '02',//小型汽车
        '03' => '03',//使馆汽车
        '04' => '04',//领馆汽车
        '05' => '05',//境外汽车
        '06' => '06',//外籍汽车
        '07' => '07',//两、三轮摩托车
        '08' => '08',//轻便摩托车
        '09' => '09',//使馆摩托车
        '10' => '10',//领馆摩托车
        '11' => '11',//境外摩托车
        '12' => '12',//外籍摩托车
        '13' => '13',//农用运输车
        '14' => '14',//拖拉机
        '15' => '15',//挂车
        '16' => '16',//教练汽车
        '17' => '17',//教练摩托车
        '18' => '18',//试验汽车
        '19' => '19',//试验摩托车
        '20' => '20',//临时入境汽车
        '21' => '21',//临时入境摩托车
        '22' => '22',//临时行驶车
        '31' => '31',//公安警用汽车
        '32' => '32',//公安民用汽车
        '33' => '33',//公安警用摩托车
        '36' => '36',//武警号牌
        '37' => '37',//军队号牌
        '51' => '',
        '52' => '',
        '99' => '',//其他
    ];

    /**
     * 验车情况
     * @var string[] $carCheckCode
     */
    public static $carCheckCode = [
        'CS1' => '1',//未验车
        'CS2' => '2',//免验车
        'CS3' => '3',//已验车
        'CS4' => '4'//待补资料
    ];

    /**
     * 免验原因
     * @var array $carCheckReasonKind
     */
    public static $carCheckReasonKind = [
        'CR1' => '1',//单保责任险
        'CR2' => '2',//按期续保
        'CR3' => '3',//新车
        'CR4' => '4',//团单
        'CR5' => '5',//协议免验
        'CR6' => '6',//低验车风险
        'CR7' => '',//其他原因
        'CR8' => '',
        'CR9' => '',
        'CR10' => ''
    ];

    /**
     * 险种代码
     * @var array $coverageCode
     */
    public static $coverageCode = [
        'C01001' => 'BZ',//机动车交通事故责任强制保险

        'C02001' => '101', //机动车损失保险
        'C02002' => '107', //附加车身划痕损失险
        'C02003' => '109', //附加修理期间费用补偿险
        'C02004' => '105', //附加车轮单独损失险
        'C02005' => '110', //附加发动机进水损坏除外特约
        'C02006' => '114', //附加绝对免赔率特约条款(车损)
        'C02007' => '106', //附加新增加设备损失险
        'C02008' => '111', //附加车上货物责任险
        'C02009' => '108', //附加保险人指定修理厂特约险

        'C03001' => '102', //机动车第三者责任保险
        'C03002' => '113', //附加法定节假日限额翻倍险
        'C03003' => '112', //附加精神损害抚慰金责任险(三者)
        'C03004' => '115', //附加医保外医疗费用责任险(三者)
        'C03005' => '120', //附加绝对免赔率特约条款(三者)

        'C04001' => '103', //机动车车上人员责任保险(司机)
        'C04002' => '129', //附加精神损害抚慰金责任险(司机)
        'C04003' => '131', //附加医保外医疗费用责任险(司机)'
        'C04004' => '121', //附加绝对免赔率特约条款(司机)

        'C05001' => '104', //机动车车上人员责任保险(乘客)
        'C05002' => '130', //附加精神损害抚慰金责任险(乘客)
        'C05003' => '132', //附加医保外医疗费用责任险(乘客)'
        'C05004' => '122', //附加绝对免赔率特约条款(乘客)

        'C08001' => '116', //道路救援服务特约条款
        'C08002' => '117', //车辆安全检测特约条款
        'C08003' => '118', //代为驾驶服务特约条款
        'C08004' => '119', //代为送检服务特约条款

        //新能源商业险
        'C12001' => '0401',//新能源汽车损失保险
        'C12002' => '0414',//附加车身划痕损失险(新能源汽车)
        'C12003' => '0415',//附加修理期间费用补偿险(新能源汽车)
        'C12004' => '0417',//附加车轮单独损失险(新能源汽车)
        'C12006' => '0426',//附加绝对免赔率特约条款(车损)((新能源汽车))
        'C12007' => '0416',//附加新增加设备损失险(新能源汽车)
        'C12008' => '0418',//附加车上货物责任险(新能源汽车)

        'C13001' => '0402',//新能源汽车第三者责任保险
        'C13002' => '0422',//附加法定节假日限额翻倍险(新能源汽车)
        'C13003' => '0419',//附加精神损害抚慰金责任险(三者)(新能源汽车)
        'C13004' => '0423',//附加医保外医疗费用责任险(三者)(新能源汽车)
        'C13005' => '0427',//附加绝对免赔率特约条款(三者)(新能源汽车)

        'C14001' => '0403',//新能源汽车车上人员责任保险(司机)
        'C14002' => '0420',//附加精神损害抚慰金责任险(司机)(新能源汽车)
        'C14003' => '0424',//附加医保外医疗费用责任险(司机)(新能源汽车)
        'C14004' => '0428',//附加绝对免赔率特约条款(司机)(新能源汽车)

        'C15001' => '0404',//新能源汽车车上人员责任保险(乘客)
        'C15002' => '0421',//附加精神损害抚慰金责任险(乘客)(新能源汽车)
        'C15003' => '0425',//附加医保外医疗费用责任险(乘客)(新能源汽车)
        'C15004' => '0429',//附加绝对免赔率特约条款(乘客)(新能源汽车)

        'C16001' => '0405',//附加外部电网故障损失险
        'C16002' => '0406',//附加自用充电桩损失保险
        'C16003' => '0407',//附加自用充电桩责任保险
        'C16004' => '',
        'C16005' => '',

        'C18001' => '0410', //道路救援服务特约条款 次数：2、7、12、17、22
        'C18002' => '0411', //车辆安全检测特约条款 次数：{1,20}
        'C18003' => '0412', //代为驾驶服务特约条款 次数：{1,20}
        'C18004' => '0413', //代为送检服务特约条款 次数：{1,20}
    ];

    /**
     * 车损险绝对免赔额
     * @var string[] $deductionLimit
     */
    public static $deductionLimit = [
        '300' => '375002',
        '500' => '375003',
        '1000' => '375004',
        '2000' => '375005',
    ];

    /**
     * 关系人
     * @var string[] $relationTypeCode
     */
    public static $relationTypeCode = [
        'R1' => '1',
        'R2' => '2',
        'R3' => '3'
    ];

    /**
     * 减免税原因代码
     * @var array $taxReductionReasonCode
     */
    public static $taxReductionReasonCode = [
        'TRR1' => '1', //具备减免税证明
        'TRR2' => '2', //拖拉机
        'TRR3' => '3', //军队、武警专用车
        'TRR4' => '4', //警车
        'TRR5' => '5', //外国使领馆、国际组织及其人员
        'TRR6' => '6', //其他
        'TRR7' => '7', //能源减免
    ];

    /**
     * 减免税方案代码
     * @var array $taxReductionCode
     */
    public static $taxReductionCode = [
        'E' => 'E', //'免税',
        'P' => 'P', //'比例减免',
        'A' => 'A', //'金额减免'
    ];

    public static $underStats = [
        'U1' => '核保通过',
        'U2' => '退回修改',
        'U3' => '人工核保',
        'U4' => '核保失败',
        'U5' => '已出保单',
        'U6' => '拒保'
    ];


    /**
     * 上传文件类型
     * @var array $uploadFileType
     */
    public static $uploadFileType = [

    ];


    /**
     * 充电桩种类
     * @var string[] $chargePileKind
     */
    public static $chargingPileKind = [
        'PK1' => '1',
        'PK2' => '2',
        'PK9' => '9'
    ];

    /**
     * 充电桩安装地点类型
     * @var string[] $chargingPileAddressType
     */
    public static $chargingPileAddressType = [
        'PA1' => '1',
        'PA2' => '2'
    ];

    /**
     * 充电桩使用年限
     * @var array $chargingPileYearLimit
     */
    public static $chargingPileYearLimit = [
        'PY1' => '1',
        'PY2' => '2',
        'PY3' => '3'
    ];

    /**
     * 上传证件类型
     * @var array
     */
    public static $uploadImageType = [
        '01' => [//新车
            '10019' => '01',//投保单
            '10020' => '01',//投保单
            '10021' => '02',//购车发票
            '10016' => '03',//合格证
            '10010' => '04',//行驶证
            '10011' => '04',//行驶证
            '10001' => '05',//证件
            '10002' => '05',//证件
            '10003' => '05',//证件
            '10004' => '05',//证件
            '10005' => '05',//证件
            '10006' => '05',//证件
            '10007' => '05',//证件
            '10008' => '05',//证件
            '10009' => '05',//证件
            '10012' => '06',//驾驶证
            '10013' => '06',//驾驶证
            '10014' => '07',//验车照片
            '10015' => '07',//验车照片

            '10100' => '07',//'验车照片3',
            '10101' => '07',//'验车照片4',
            '10102' => '07',//'验车照片5',
            '10103' => '07',//'验车照片6',
            '10104' => '07',//'验车照片7',
            '10105' => '07',//'验车照片8',
            '10106' => '07',//'验车照片9',
            '10107' => '07',//'验车照片10',

            '10017' => '08',//已完税/减免税凭证
            '10018' => '10',//其他资料
        ],
        '02' => [//旧车
            "10019" => "01",//投保单
            "10020" => "01",//投保单
            "10010" => "02",//行驶证或机动车登记证书
            "10011" => "02",//行驶证或机动车登记证书
            "10018" => "02",//行驶证或机动车登记证书
            "10001" => "03",//证件
            "10002" => "03",//证件
            "10003" => "03",//证件
            "10004" => "03",//证件
            "10005" => "03",//证件
            "10006" => "03",//证件
            "10007" => "03",//证件
            "10008" => "03",//证件
            "10009" => "03",//证件
//            "04",//二手车购车合同或发票
            "10012" => "05",//驾驶证
            "10013" => "05",//驾驶证
            "10014" => "06",//验车照片
            "10015" => "06",//验车照片

            '10100' => '06',//'验车照片3',
            '10101' => '06',//'验车照片4',
            '10102' => '06',//'验车照片5',
            '10103' => '06',//'验车照片6',
            '10104' => '06',//'验车照片7',
            '10105' => '06',//'验车照片8',
            '10106' => '06',//'验车照片9',
            '10107' => '06',//'验车照片10',

            "10017" => "07",//已完税/减免税凭证
//            "08",//新增设备发票与清单
            "10016" => "09",//其他资料
            "10021" => "09",//其他资料
        ],
    ];

    public static $uploadImageTypeName = [
        '01' => [
            '01' => '投保单',
            '02' => '购车发票',
            '03' => '合格证',
            '04' => '行驶证',
            '05' => '证件',
            '06' => '驾驶证',
            '07' => '验车照片',
            '08' => '已完税/减免税凭证',
            '09' => '新增设备发票与清单',
            '10' => '其他资料',
        ],
        '02' => [
            '01' => '投保单',
            '02' => '行驶证或机动车登记证书',
            '03' => '证件',
            '04' => '二手车购车合同或发票',
            '05' => '驾驶证',
            '06' => '验车照片',
            '07' => '已完税/减免税凭证',
            '08' => '新增设备发票与清单',
            '09' => '其他资料',
        ],
    ];

    /**
     * 车身颜色
     * vehicleColor
     * @var string[] $vehicleColor
     */
    public static $vehicleColor = [
        '001' => '02',//'白色',
        '002' => '04',//'灰色',
        '003' => '07',//'黄色',
        '004' => '08',//'粉色',
        '005' => '03',//'红色',
        '006' => '09',//'紫色',
        '007' => '06',//'绿色',
        '008' => '05',//'蓝色',
        '009' => '10',//'棕色',
        '010' => '01',//'黑色',
        '999' => '99',//'其他',
    ];
}
